<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta
      name="viewport"
      content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"
    />
    <meta
      name="format-detection"
      content="telephone=no,email=no,date=no,address=no"
    />
    <link rel="stylesheet" type="text/css" href="static/css/aui.css" />
    <link
      rel="stylesheet"
      type="text/css"
      href="static/js/swiper/swiper-4.0.5.min.css"
    />
    <link rel="stylesheet prefetch" href="static/css/photoswipe.css" />
    <link rel="stylesheet prefetch" href="static/css/default-skin.css" />
    <link
      rel="stylesheet"
      type="text/css"
      href="static/css/font-awesome.min.css"
    />
    <link rel="stylesheet" type="text/css" href="static/css/house.css?version=1.0.1" />
    <script
      type="text/javascript"
      charset="utf-8"
      src="static/app/md5.js"
    ></script>
    <script
      type="text/javascript"
      charset="utf-8"
      src="static/app/config.js?version=1.0.1"
    ></script>
    <script
      type="text/javascript"
      src="http://api.map.baidu.com/api?v=2.0&ak=slQh6wYeGi2K2Lnrk7pfZHyVUfdjVdtD"
    ></script>
    <script src="static/js/jquery-1.11.2.min.js"></script>
    <script src="static/js/swiper/swiper-4.0.5.min.js"></script>
    <script src="static/js/big_img.js"></script>
    <script src="static/js/photoswipe.min.js"></script>
    <script src="static/js/photoswipe-ui-default.min.js"></script>
    <script src="static/js/bigImg.js"></script>
    <script type="text/javascript" src="static/js/jquery.raty.min.js"></script>
    <script src="js/supermap/SuperMap.Include.js"></script>
    <script
      type="text/javascript"
      charset="utf-8"
      src="js/js/service.js"
    ></script>
    <script type="text/javascript" charset="utf-8" src="//res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
    <script type="text/javascript" charset="utf-8" src="static/app/weixin.min.js"></script>
    <script
      type="text/javascript"
      src="./js/require.min.js"
      data-main="js/main"
    ></script>
    <script
      type="text/javascript"
      charset="utf-8"
      src="js/js/query.js"
    ></script>
    <script
      type="text/javascript"
      charset="utf-8"
      src="static/app/loupan.js?version=1.0.6"
    ></script>

    <style>
      .BMap_bubble_title p a {
        display: none;
      }
      .BMap_shadow {
        display: none;
      }
      .BMapLabel {
        background-color: #5085f9;
        margin-left: 20px;
        /* color:white; */
      }
      .anchorBL {
        display: none;
      }
      .anchorBL span {
        display: none;
      }
      .pingjia .mui-comments:last-child .mui-content {
        padding-bottom: 0.5rem;
      }

      .top-four .header-nav li {
        width: 33%;
      }
      .cesium-widget canvas {
        height: 332px;
        width: 100%;
      }
      .cesium-zoom-wrapper {
        display: none;
      }
      .cesium-viewer-infoBoxContainer {
        display: none;
      }
      .cesium-credit-image {
        display: none;
      }
      .cesium-viewer-bottom {
        display: none;
      }
      .chuang-room-tip {
        margin-top: 8px;
      }
      .cesium-infoBox-title {
        display: none;
      }
      .cesium-svgPath-svg {
        display: none;
      }
      .cesium-infoBox-close {
        display: none;
      }
      .cesium-button .cesium-infoBox-camera {
        display: none;
      }
      .cesium-infoBox-visible {
        visibility: hidden;
      }
      .cesium-viewer-selectionIndicatorContainer {
        display: none;
      }
      .cesium-infoBox .cesium-infoBox-bodyless .cesium-infoBox-visible {
        display: none;
      }
    </style>
  </head>

  <body class="layout-w">
    <div class="aui-content-padded" style="margin-top:.4rem;">
      <div class="top-search aui-clearfix">
        <div class="aui-pull-left">
            <a href="/home/html/"><img src="static/images/logo-2.svg" /></a>
          
        </div>
        <div
          class="aui-pull-right more-info"
          id="auipull"
          onclick="tabDisplay()"
        >
          <a href="javascript:;" style="padding-left:.5rem;">
            <img
              src="static/images/more.svg"
              style="vertical-align: middle;width:.9rem;"
            />
          </a>
          <ul id="ulshow" style="display:none;">
            <li><a href="/home/html/">首页</a></li>
            <li>
              <a href="/item/views/search/search-result-community.html"
                >搜索选址</a
              >
            </li>
            <li>
              <a href="/item/views/commiss/demand-entry.html">委托找房</a>
            </li>
            <li>
              <a href="/item/views/others/enterDevelopers.html">入驻平台</a>
            </li>
          </ul>
        </div>
        <div class="aui-pull-right" style="width:50%;">
          <form>
            <div class="header-cearch">
              <a href="/item/views/search/entry.html?type=1">
                <i class="fa fa-search"></i>
                <input
                  class="header-search-input"
                  type="text"
                  placeholder="搜索楼盘名称"
                />
              </a>
            </div>
          </form>
        </div>
      </div>
      <div class="main-info">
        <div class="aui-info">
          <div class="aui-info-item">
            <h2 class="title">
              <span id="tit"></span
              ><span class="small-title"><small id="yll"></small></span>
            </h2>
          </div>
          <div class="aui-info-item" id="jiage">
            <span class="blue" id="price"></span>&nbsp;元/m²·天
          </div>
        </div>
        <div class="aui-info" style="padding-top:.15rem;">
          <div class="aui-info-item">
            <small
              ><span id="addre"></span>｜<span id="jcnd1"></span>建成</small
            >
          </div>
          <div class="aui-info-item"><small id="guanzhu"></small></div>
        </div>
        <div class="black-bg" style="height:5rem;"></div>
      </div>
      <div class="top-four" id="nav-container">
        <ul class="cell header-nav" id="nav-box">
          <li data-type="nav" data-index="0" class="active">
            <a href="javascript:;">房源</a>
          </li>
          <li class="split"></li>
          <li data-type="nav" data-index="2">
            <a href="javascript:;">详情</a>
          </li>
          <li class="split"></li>
          <li data-type="nav" data-index="3">
            <a href="javascript:;">配套</a>
          </li>
        </ul>
      </div>
      <div id="container">
        <div class="first-child" id="first-child">
          <div class="new-location aui-margin-t-10">
            <div class="line-1" style="font-weight:normal;">
              <img src="static/images/union/icon-location.svg" /><span
                id="address"
              ></span>
            </div>
          </div>
          <div class="three-d aui-margin-t-10">
            <!-- 这里放3d模型 -->
            <div class="model" id="scenediv">
              <div class="modelchange">
                <a
                  href="javascript:;"
                  name="model-button-1"
                  class="mode-button active"
                  ><small>3D楼盘</small></a
                >&nbsp;|
                <a href="javascript:;" name="model-button-2" class="mode-button"
                  ><small>全景周边</small></a
                >
                <div
                  class="invisible-mode"
                  name="invisible-mode-button"
                  data-type="model-button-1"
                  style="left:0"
                ></div>
                <div
                  class="invisible-mode"
                  name="invisible-mode-button"
                  data-type="model-button-2"
                  style="right:0;width:4em;"
                ></div>
              </div>
              <img
                id="img1"
                src="images/zhinanzhen1.png"
                style="position: absolute;z-index:3;height: 32px;width: 32px;border: 0px;right: 14px;margin-top: 0.5rem;"
              />
              <img
                id="fd"
                src="images/fangda.png"
                style="height:32px;width:32px;position: absolute;bottom:46px;right:14px;z-index: 999;cursor: pointer;"
                onclick="add()"
              />
              <img
                id="sx"
                src="images/suoxiao.png"
                style="height:32px;width:32px;position: absolute;bottom:14px;right:14px;z-index: 999;cursor: pointer;"
                onclick="reduce()"
              />
              <img
                id="fy"
                src="images/fuyuan.png"
                style="height:32px;width:32px;position: absolute;right:14px;bottom:86px;z-index: 999;cursor: pointer;"
                onclick="reset()"
              />
              <img
                id="gif"
                src="images/load.gif"
                style="height:13%;width:12%;position: absolute;margin-top: 30%;margin-left: 45%;z-index: 111;cursor: pointer;display:block;opacity: 0.5;"
              />
              <img
                id="ditu"
                src="images/ditu.png"
                style="height:100%;width:100%;position: absolute;z-index: 101;cursor: pointer;display:block;opacity: 0.1;"
              />
            </div>
            <!-- 这里放3d模型 -->
            <!-- 这里放图片 -->
            <div class="picture" id="picture">
              <div
                class="swiper-container swiper-threed"
                alt="Image description"
              >
                <div class="my-gallery swiper-wrapper" id="piclist">
                  <!-- <div class="swiper-slide">
                                    <a href="images/h-1.jpg" data-size="1024x1024"><img src="images/h-1.jpg" /></a>
                                    <figcaption itemprop="caption description">图片1</figcaption>
                                </div>
                                <div class="swiper-slide">
                                    <a href="images/h-2.jpg" data-size="1024x1024"><img src="images/h-2.jpg" /></a>
                                    <figcaption itemprop="caption description">图片2</figcaption>
                                </div>
                                <div class="swiper-slide">
                                    <a href="images/h-1.jpg" data-size="1024x1024"><img src="images/h-1.jpg" /></a>
                                    <figcaption itemprop="caption description">图片3</figcaption>
                                </div> -->
                </div>
                <div class="swiper-pagination"></div>
              </div>
              <img
                id="logoimg"
                src="static/images/logo-lighter.png"
                class="watermark"
                style="display:none;"
              />
            </div>
            <!-- 这里放图片 -->
            <div class="button">
              <a
                id="model3d"
                href="javascript:;"
                name="three-d-button-1"
                data-type="model"
                class="three-d-a active"
                style="margin-right:.2rem;"
                ><small>3D</small></a
              >
              <a
                id="tp"
                href="javascript:;"
                name="three-d-button-2"
                data-type="pic"
                class="three-d-a"
                style="font-size:.65rem;margin-left: .2rem;"
                ><small>&nbsp;图片</small></a
              >
              <div
                class="three-d-invisible"
                data-type="three-d-button-1"
                style="left:0"
              ></div>
              <div
                class="three-d-invisible"
                data-type="three-d-button-2"
                style="right:0"
              ></div>
            </div>
          </div>
          <ul class="choose aui-clearfix" id="count">
            <li id="mianji">
              面积&nbsp;
              <a
                href="javascript:;"
                id="xiao"
                data-original-title="200m²以下"
                data-toggle="tooltip"
                data-placement="bottom"
                onclick="change(this)"
                >小</a
              >
              <a
                href="javascript:;"
                id="zhon"
                data-original-title="200～799m²"
                data-toggle="tooltip"
                data-placement="top"
                onclick="change(this)"
                >中</a
              >
              <a
                href="javascript:;"
                id="da"
                data-original-title="800m²以上"
                data-toggle="tooltip"
                data-placement="bottom"
                onclick="change(this)"
                >大</a
              >
            </li>
            <li style="width:100%;" id="louceng">
              楼层&nbsp;
              <a
                href="javascript:;"
                id="di"
                data-original-title="6层以下"
                data-toggle="tooltip"
                data-placement="bottom"
                onclick="change(this)"
                >低</a
              >
              <a
                href="javascript:;"
                id="zhong"
                data-original-title="7～15层"
                data-toggle="tooltip"
                data-placement="top"
                onclick="change(this)"
                >中</a
              >
              <a
                href="javascript:;"
                id="gao"
                data-original-title="16～30层"
                data-toggle="tooltip"
                data-placement="bottom"
                onclick="change(this)"
                >高</a
              >
              <a
                href="javascript:;"
                id="chaogao"
                data-original-title="31层以上"
                data-toggle="tooltip"
                data-placement="top"
                onclick="change(this)"
                >超高</a
              >
            </li>
          </ul>
          <!-- 这是搜索无结果的样式，请按需使用 -->
          <div
            class="other-list"
            id="nolist"
            style="text-align:center;padding: 2rem 0;"
          >
            <img src="static/images/no-result-icon.svg" />
          </div>
          <!-- 这是搜索无结果的样式，请按需使用 -->
          <div class="other-list aui-clearfix">
            <div class="swiper-container swiper-lou" id="havelist">
              <div
                class="swiper-wrapper"
                style="width:97%;margin-left:3%;"
                id="fjhlist"
              >
                <!-- <div class="swiper-slide">
                                <div class="details">
                                    <div class="pic">
                                        <img src="static/images/d-5.png" style="display: inline;">
                                    </div>
                                    <div class="remark aui-clearfix">
                                        <div class="line-1 aui-clearfix">
                                            <div class="pull-left"><a href="javascript:;">300m²｜8层</a></div>
                                            <div class="pull-right">
                                                <span class="zhizu-plan"><small>直租计划</small></span>
                                            </div>
                                        </div>
                                        <div class="aui-clearfix detail-info">
                                            <div class="pull-left" style="padding-top:.1rem;"><small>浏览量</small>39</div>
                                            <div class="pull-right">
                                                <small>约</small><big>18.8</big>
                                                <small>万/月</small>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div> -->
              </div>
            </div>
            <!-- 只显示一个按钮的情况，选择其中一个展示 -->
            <!--  <a class="lou-button" href="4.2-全部待租空间(房源)列表.html" style="margin-bottom:0;">全部房源</a>
                    <a class="lou-button" href="javascript:;" style="margin-bottom:0;">联合办公</a> -->
            <!-- 只显示一个按钮的情况，选择其中一个展示 -->

            <!-- 两个按钮同时显示的情况 -->
            <div class="lou-button-list aui-clearfix">
              <a
                class="lou-button-inner aui-pull-left"
                onclick="toSearch()"
                style="margin-bottom:0;"
                >全部房源</a
              >
              <a
                class="lou-button-inner aui-pull-right"
                onclick="goCommunity()"
                style="margin-bottom:0;"
                >联合办公</a
              >
            </div>
            <!-- 两个按钮同时显示的情况 -->
          </div>
        </div>
        <div class="third-child" id="third-child">
          <div class="gaikuang aui-margin-t-10" style="position:relative;">
            <h3 class="common-title-h3" id="goToDetail">楼盘详情</h3>
            <h4 class="second-name">楼盘概况</h4>
            <ul class="aui-margin-t-5 aui-clearfix">
              <li class="li-inline">
                <span>建成年代：</span>
                <a id="jcnd"></a>
              </li>
              <li class="li-inline">
                <span>建筑面积：</span>
                <a id="jzmj"></a>
              </li>
              <li class="li-inline">
                <span>所属商圈：</span>
                <a id="sssq">奥体中心</a>
              </li>
              <li class="li-inline">
                <span>楼栋数量：</span>
                <a id="ldsl"></a>
              </li>
              <li>
                <span>最高楼层：</span>
                <a id="zglc"></a>
              </li>
              <li>
                <span>所在环线：</span>
                <a id="szhx"></a>
              </li>
              <li>
                <span
                  style="width:3rem;text-align: justify;text-justify: inter-ideograph;height:1.2rem;"
                  >开发商：
                  <span
                    style="display: inline-block;padding-left: 100%;"
                  ></span>
                </span>
                <a id="kfs"></a>
              </li>
              <li>
                <span>楼盘地址：</span>
                <a id="lpdz"></a>
              </li>
            </ul>
            <h4 class="second-name">硬件设施</h4>
            <ul class="aui-margin-t-5">
              <li>
                <span>客梯数量：</span>
                <a id="ktsl"></a>
              </li>
              <li>
                <span>停车设施：</span>
                <a id="tcss"></a>
              </li>
              <li>
                <span
                  style="width:3rem;text-align: justify;text-justify: inter-ideograph;height:1.2rem;"
                  >空调：
                  <span
                    style="display: inline-block;padding-left: 100%;"
                  ></span>
                </span>
                <a id="ktxt"></a>
              </li>
            </ul>
            <h4 class="second-name">入驻企业</h4>
            <div class="side-house aui-margin-t-5" style="width:100%;margin:0;">
              <p class="comlist" id="rzqy"></p>
            </div>
            <h4 class="second-name">物业服务</h4>
            <ul class="aui-margin-t-5">
              <li>
                <span>物业公司：</span>
                <a id="wygs"></a>
              </li>
              <li>
                <span
                  style="width:3rem;text-align: justify;text-justify: inter-ideograph;height:1.2rem;"
                  >物业费：
                  <span
                    style="display: inline-block;padding-left: 100%;"
                  ></span>
                </span>
                <a id="wyf"></a>
              </li>
              <li>
                <span>特色服务：</span>
                <a id="tsfw"></a>
              </li>
            </ul>
            <h4 class="second-name">楼盘简介</h4>
            <div class="dis" id="lpjs"></div>
          </div>
        </div>

        <div class="fourth-child" id="fourth-child">
          <div class="around" style="margin-bottom: .5rem;">
            <h3 class="common-title-h3 mt-1">周边配套</h3>
            <!-- 这里放地图，style中的样式后期可去掉 -->
            <div class="map" id="bdmap" style="background:#eee;"></div>
            <!-- 这里放地图，style中的样式后期可去掉 -->
          </div>
          <div class="around-tui">
            <h3 class="common-title-h3" id="zbtj">周边推荐</h3>
            <!-- <div class="out">
                        <div class="more-house-list">
                            <div class="pic">
                                <a href="javascript:;"><img src="static/images/3D.svg"></a>
                                <img src="static/images/d-5.png">
                            </div>
                            <div class="remark aui-clearfix">
                                <div class="line-1 aui-ellipsis-1">北京华贸中心</div>
                                <div class="aui-info">
                                    <div class="aui-info-item"><small>200m²-2000m²在租</small></div>
                                </div>
                                <div class="aui-info">
                                    <div class="aui-info-item zhizu-plan"><small>直租计划</small></div>
                                    <div class="aui-info-item"><big>18</big><small> 元/m²·天</small></div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="out">
                        <div class="more-house-list">
                            <div class="pic">
                                <a href="javascript:;"><img src="static/images/3D.svg"></a>
                                <img src="static/images/d-5.png">
                            </div>
                            <div class="remark aui-clearfix">
                                <div class="line-1 aui-ellipsis-1">北京华贸中心</div>
                                <div class="aui-info">
                                    <div class="aui-info-item"><small>200m²-2000m²在租</small></div>
                                </div>
                                <div class="aui-info">
                                    <div class="aui-info-item zhizu-plan"><small>直租计划</small></div>
                                    <div class="aui-info-item"><big>18</big><small> 元/m²·天</small></div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="out">
                        <div class="more-house-list">
                            <div class="pic">
                                <a href="javascript:;"><img src="static/images/3D.svg"></a>
                                <img src="static/images/d-5.png">
                            </div>
                            <div class="remark aui-clearfix">
                                <div class="line-1 aui-ellipsis-1">北京华贸中心</div>
                                <div class="aui-info">
                                    <div class="aui-info-item"><small>200m²-2000m²在租</small></div>
                                </div>
                                <div class="aui-info">
                                    <div class="aui-info-item zhizu-plan"><small>直租计划</small></div>
                                    <div class="aui-info-item"><big>18</big><small> 元/m²·天</small></div>
                                </div>
                            </div>
                        </div>
                    </div> -->
            <!--  <div class="out">
                        <div class="more-house-list">
                            <div class="pic">
                                <a href="javascript:;"><img src="static/images/3D.svg"></a>
                                <img src="static/images/d-5.png">
                            </div>
                            <div class="remark aui-clearfix">
                                <div class="line-1 aui-ellipsis-1">北京华贸中心</div>
                                <div class="aui-info">
                                    <div class="aui-info-item"><small>200m²-2000m²在租</small></div>
                                </div>
                                <div class="aui-info">
                                    <div class="aui-info-item zhizu-plan"><small>直租计划</small></div>
                                    <div class="aui-info-item"><big>18</big><small> 元/m²·天</small></div>
                                </div>
                            </div>
                        </div>
                    </div> -->
          </div>
        </div>
      </div>
      <div class="dibu-qrcode">
        <div class="bottom-line">
          <h5>关注公众号，选址更方便</h5>
          <div class="bg-line"></div>
        </div>
        <img src="static/images/qrcode.svg" />
      </div>
      <!-- 底部 -->
      <footer>
        <img src="static/images/union/footer.svg" style="width:100%;" />
      </footer>
      <!-- 底部 -->
    </div>
    <!-- 大图 -->
    <div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">
      <div class="pswp__bg"></div>
      <div class="pswp__scroll-wrap">
        <div class="pswp__container">
          <div class="pswp__item"></div>
          <div class="pswp__item"></div>
          <div class="pswp__item"></div>
        </div>
        <div class="pswp__ui pswp__ui--hidden">
          <div class="pswp__top-bar">
            <div class="pswp__counter"></div>
            <button
              class="pswp__button pswp__button--close"
              title="Close (Esc)"
            ></button>
            <div class="pswp__preloader">
              <div class="pswp__preloader__icn">
                <div class="pswp__preloader__cut">
                  <div class="pswp__preloader__donut"></div>
                </div>
              </div>
            </div>
          </div>
          <div class="pswp__caption">
            <div class="pswp__caption__center"></div>
          </div>
        </div>
      </div>
    </div>
    <!-- 大图 -->
    <div class="white-4"></div>
    <a class="back-to-top" href="javascript:;" style="bottom:2.8rem;">
      <img src="static/images/totop.svg" />
    </a>
    <div class="bottom-fixed">
      <div class="line-2 aui-clearfix">
        <a class="aui-pull-left" id="daohang1" href="javascript:;"
          ><img src="static/images/location-address.svg" />导 航</a
        >
        <a class="aui-pull-left" id="phone" href="javascript:;"
          ><img src="static/images/location-phone.svg" />电 话</a
        >
        <a class="aui-pull-left" id="guanzhulp" href="javascript:;"
          ><img src="static/images/favorite.svg" style="width:.65rem;" /><span
            id="lpgz"
            >关 注</span
          ></a
        >
      </div>
    </div>
    <script>
      var navContainer = document.getElementById("nav-container");
      var navBox = document.getElementById("nav-box");
      var text = document.getElementById("container");
      var navBoxChild = new Array();

      for (i = 0; i < navBox.children.length; i++) {
        if (i % 2 == 0) {
          navBoxChild.push(navBox.children[i]);
        }
      }

      var textChild = text.children;
      var a = navContainer.offsetHeight;

      /**从地址栏中获取参数值**/
      function request(paras) {
        var url = location.href;
        var paraString = url
          .substring(url.indexOf("?") + 1, url.length)
          .split("&");
        var paraObj = {};
        for (i = 0; (j = paraString[i]); i++) {
          paraObj[j.substring(0, j.indexOf("=")).toLowerCase()] = j.substring(
            j.indexOf("=") + 1,
            j.length
          );
        }
        var returnValue = paraObj[paras.toLowerCase()];
        if (typeof returnValue == "undefined") {
          return "";
        } else {
          return returnValue;
        }
      }
      function tabDisplay() {
        $("#ulshow").toggle();
      }
      function goCommunity() {
        window.location.href =
          "/item/views/search/search-result-community.html?buildingId=" +
          getParams("buildid");
      }
      $(document).ready(function() {
        var swiper = new Swiper(".swiper-lou", {
          slidesPerView: "auto",
          loop: false,
          direction: "horizontal",
          freeMode: true,
          observer: true, //修改swiper自己或子元素时，自动初始化swiper
          observeParents: true, //修改swiper的父元素时，自动初始化swiper
          on: {
            sliderMove: function() {
              huadong();
            },
            slideChangeTransitionEnd: function() {
              huadong(); //切换结束时,触发滑动函数
            }
          }
        });

        //3D部分
        $(".invisible-mode").on("click", function() {
          var aim = $(this).attr("data-type");
          $(".mode-button").removeClass("active");
          $('a[name="' + aim + '"]').addClass("active");
          if ($('a[name="' + aim + '"]')[0].innerText == "3D楼盘") {
            btncount = 1;
            viewer.entities.removeAll();
            viewer.entities._show = true;
            louhao();
            promisemodel.then(function(layer) {
              $("#ditu").css({ display: "none" });
              $("#gif").css({ display: "none" });
              layer.selectEnabled = false;
              layer.visible = true;
            });
            promisemodel12.then(function(layer) {
              layer.visible = false;
            });
            if (commname == "乐成中心" || commname == "BJCY010") {
              promisemodellczx.then(function(layer) {
                layer.selectEnabled = false;
                layer.visible = false;
              });
            }
            layerdom.show = false;
            reset();
            var arr = viewer.entities.values;
          } else {
            btncount = 0;
            viewer.entities.removeAll();
            viewer.entities._show = true;
            layerdom.show = true;
            promisemodel.then(function(layer) {
              layer.visible = true;
            });
            promisemodel12.then(function(layer) {
              layer.visible = true;
            });
            if (commname == "乐成中心" || commname == "BJCY010") {
              promisemodellczx.then(function(layer) {
                layer.selectEnabled = false;
                layer.visible = true;
              });
            }
            reset();
            mark(); //全景周边中楼标注
          }
        });
        $(".three-d-invisible").on("click", function() {
          var aim = $(this).attr("data-type");
          $(".three-d-a").removeClass("active");
          $('a[name="' + aim + '"]').addClass("active");

          if ($('a[name="' + aim + '"]').attr("data-type") == "model") {
            $(".model").show();
            $(".picture").hide();
          } else {
            $(".picture").show();
            $(".model").hide();
          }
        });

        //滚动到指定位置
        $('li[data-index="0"]').click(function() {
          $("html,body").animate(
            { scrollTop: $(".first-child").offset().top },
            500
          );
        });
        $('li[data-index="2"]').click(function() {
          $("html,body").animate(
            { scrollTop: $(".third-child").offset().top - 40 },
            500
          );
        });
        $('li[data-index="3"]').click(function() {
          $("html,body").animate(
            { scrollTop: $(".fourth-child").offset().top - 40 },
            500
          );
        });

        //跳转
        $("#goToPingjia").on("click", function() {
          window.location.href = "4.5-楼盘评价列表.html";
        });
        $("#goToZu").on("click", function() {
          window.location.href = "4.6-楼盘评价录入-看房.html";
        });

        /*  $('.map').on('click', function () {
                location.href = "bdmap.html?name="+commname;
            })  */

        //房源信息详情页面跳转处理
        var type = request("type");
        // if (type == 'goToDetail') {//详情
        //     $('html,body').animate({ scrollTop: $('.third-child').offset().top - 40 }, 800);
        // }
        if (type == "goToAll") {
          //房源
          $("html,body").animate(
            { scrollTop: $(".first-child").offset().top },
            500
          );
        }

        //回到顶部
        window.onscroll = function() {
          var scrollTop =
            document.documentElement.scrollTop ||
            window.pageYOffset ||
            document.body.scrollTop;
          if (scrollTop >= 100) {
            $(".back-to-top").fadeIn();
          } else {
            $(".back-to-top").fadeOut();
          }

          //顶部四个栏目的显示
          if (scrollTop >= 20) {
            $(".top-four").fadeIn();
          } else {
            $(".top-four").fadeOut();
          }

          var scrollHeight = $(document).height(); //整个文档的高度
          var windowHeight = $(this).height(); //当前可见区域的大小

          //当导航与相应文档接触的时候自动切换
          for (var i = 0; i < navBoxChild.length; i++) {
            if (scrollTop + a * 2 >= textChild[i].offsetTop - 50) {
              for (var j = 0; j < navBoxChild.length; j++) {
                navBoxChild[j].className = "";
              }

              if (scrollTop + windowHeight == scrollHeight) {
                //滑动到底部
                navBoxChild[navBoxChild.length - 1].className = "active";
              } else {
                navBoxChild[i].className = "active";
              }
            }
          }
        };
        $(".back-to-top").click(function() {
          $("html,body").animate({ scrollTop: "0px" }, 500);
        });
      });
    </script>

    <script type="text/javascript">
      $("#score-demo").raty({ score: 3.5 });
      $("#score-demo1").raty({ score: 3 });
    </script>
  </body>
</html>
<script>
  var cr = "";
  var resu;
  var marker1 = "";
  var point1;
  var map = new BMap.Map("bdmap", { enableMapClick: false }); // 创建Map实例
  // 左上角，添加比例尺
  var top_left_control = new BMap.ScaleControl({
    anchor: BMAP_ANCHOR_TOP_LEFT
  });
  //左上角，添加默认缩放平移控件
  var top_left_navigation = new BMap.NavigationControl();
  map.addControl(top_left_navigation);
  //添加滚轮放大、缩小
  map.enableScrollWheelZoom(true);
  map.disableDragging();
  cr = new BMap.CopyrightControl({ anchor: BMAP_ANCHOR_TOP_RIGHT }); //设置版权控件位置
  map.addControl(cr); //添加版权控件

  //创建地址解析器实例
  var myGeo = new BMap.Geocoder();

  //map.centerAndZoom(point, 16);
  //btn("cont","地铁");
  //btn("cont","公交");
  //var circle = new BMap.Circle(point,500,{fillColor:"#ccc", strokeWeight: 1 ,fillOpacity: 0.2, strokeOpacity: 0.2});
  // 范围区域
  //map.addOverlay(circle);
  /* var myIcon = new BMap.Icon("http://api.map.baidu.com/img/markers.png", new BMap.Size(23, 25), {  
    offset: new BMap.Size(10, 25), // 指定定位位置  
    imageOffset: new BMap.Size(0, 0 - 10 * 25) // 设置图片偏移  
});   
var marker = new BMap.Marker(point,{icon:myIcon});
marker.setLabel(new BMap.Label(commname));
map.addOverlay(marker);	 */
  if (dzc_service == undefined || commname == "") {
    $("#scenediv").css({ display: "none" });
    $("#ditu").css({ display: "none" });
    $("#gif").css({ display: "none" });
    $("#model3d").css({ display: "none" });
    $("#tp").addClass("active");
    $(".three-d-invisible").css({ display: "none" });
  }
</script>
